<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\DB;
class CreateAuthGroupAccessTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('auth_group_access', function (Blueprint $table) {
            $table->foreignId('admin_id')->comment('管理员id');
            $table->foreignId('group_id')->comment('权限组id');
        });
        DB::statement("ALTER TABLE `auth_group_access` comment '权限分组表'");
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('');
    }
}
